package com.bwie.controller;

import com.bwie.service.TbProdInfoService;
import com.bwie.utils.Result;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/shop/index")
public class ProdInfoController {
    @Autowired
    TbProdInfoService tbProdInfoService;

    /**
     * 分页获取商品详情列表
     * @param pageInfoVo
     * @return
     */
    @PostMapping("/getProdInfoList")
    public Result getProdInfoList(@RequestBody PageInfoVo pageInfoVo){
        return tbProdInfoService.getProdInfoList(pageInfoVo);
    }
}
